package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.EtDimProvinceMapper;
import com.ktgj.other.domain.EtDimProvince;
import com.ktgj.other.service.IEtDimProvinceService;

/**
 * 省Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-22
 */
@Service
public class EtDimProvinceServiceImpl implements IEtDimProvinceService 
{
    @Autowired
    private EtDimProvinceMapper etDimProvinceMapper;

    /**
     * 查询省
     * 
     * @param provinceid 省ID
     * @return 省
     */
    @Override
    public EtDimProvince selectEtDimProvinceById(Long provinceid)
    {
        return etDimProvinceMapper.selectEtDimProvinceById(provinceid);
    }

    /**
     * 查询省列表
     * 
     * @param etDimProvince 省
     * @return 省
     */
    @Override
    public List<EtDimProvince> selectEtDimProvinceList(EtDimProvince etDimProvince)
    {
        return etDimProvinceMapper.selectEtDimProvinceList(etDimProvince);
    }

    /**
     * 新增省
     * 
     * @param etDimProvince 省
     * @return 结果
     */
    @Override
    public int insertEtDimProvince(EtDimProvince etDimProvince)
    {
        return etDimProvinceMapper.insertEtDimProvince(etDimProvince);
    }

    /**
     * 修改省
     * 
     * @param etDimProvince 省
     * @return 结果
     */
    @Override
    public int updateEtDimProvince(EtDimProvince etDimProvince)
    {
        return etDimProvinceMapper.updateEtDimProvince(etDimProvince);
    }

    /**
     * 批量删除省
     * 
     * @param provinceids 需要删除的省ID
     * @return 结果
     */
    @Override
    public int deleteEtDimProvinceByIds(Long[] provinceids)
    {
        return etDimProvinceMapper.deleteEtDimProvinceByIds(provinceids);
    }

    /**
     * 删除省信息
     * 
     * @param provinceid 省ID
     * @return 结果
     */
    @Override
    public int deleteEtDimProvinceById(Long provinceid)
    {
        return etDimProvinceMapper.deleteEtDimProvinceById(provinceid);
    }
}
